import request from '@/utils/myrequest'

export function getList(kvs) {
  return request({
    url: 'config/project/getlist',
    method: 'get',
    kvs
  })
}

export function get(kvs) {
  return request({
    url: 'config/project/get',
    method: 'get',
    kvs
  })
}

export function add(kvs) {
  return request({
    url: 'config/project/add',
    method: 'post',
    kvs
  })
}

export function del(kvs) {
  return request({
    url: 'config/project/delete',
    method: 'post',
    kvs
  })
}

export function edit(kvs) {
  return request({
    url: 'config/project/update',
    method: 'post',
    kvs
  })
}

export function editProjectMenu(kvs) {
  return request({
    url: 'config/project/setProjectFunctions',
    method: 'post',
    kvs
  })
}

export function getMenuIdsByProjectId(kvs) {
  return request({
    url: 'config/project/GetProjectFunctions',
    method: 'get',
    kvs
  })
}

export function changestatus(kvs) {
  return request({
    url: 'config/project/changestatus',
    method: 'post',
    kvs
  })
}

export function getEnEnumList(kvs) {
  return request({
    url: '/config/Common/GetEnEnumList',
    method: 'get',
    kvs
  })
}

export default { getList, add, edit, del, get, editProjectMenu,
  getMenuIdsByProjectId, changestatus, getEnEnumList }
